<?xml version="1.0"?>
<globals>
    <#assign useSupport=(minApiLevel lt 23)>
    <global id="useSupport" type="boolean" value="${useSupport?string}" />
    <global id="SupportPackage" value="${useSupport?string('.support.v4','')}" />

    <global id="resOut" value="${resDir}" />
    <global id="srcOut" value="${srcDir}/${slashedPackageName(packageName)}" />
    <global id="relativePackage" value="<#if relativePackage?has_content>${relativePackage}<#else>${packageName}</#if>" />

    <#assign applicationDir=applicationPackage>
    <#assign viewModelOut=srcOut?substring(0,srcOut?index_of("src/main/java")+("src/main/java"?length)+1)>

    <global id="applicationDir" type="string" value="<#if applicationDir??>${applicationDir}<#else>${packageName}</#if>"/>
    <global id="viewModelOut" type="string" value="${viewModelOut}${slashedPackageName(applicationDir)}"/>
</globals>
